npmrun
24099b6b70
feat: 优化工具处理逻辑,确保在无代理工具时隐藏工具栏
2 months ago
npmrun
b4af7e2d55
feat: 增加登录状态检查,确保未登录用户重定向到默认代理
2 months ago
npmrun
006ef674f4
feat: 增加代理切换功能,支持代理名称和描述的显示
2 months ago
npmrun
ffd62624b4
改了很多
2 months ago
npmrun
84ebd0d5e9
feat: update agent configuration and model handling for global defaults
2 months ago
npmrun
dd2cf5adda
fix: hide document feature for guests + enforce public tool whitelist
- TopNav: '文档' link only shows when loggedIn
- AgentToolbar: document button v-if="loggedIn"
- getAgentToolsForChatByAgentId: filter tools by agentPublicToolSlugs
whitelist for guest users (previously only skipped adminOnly tools,
exposing document and other non-public tools to unauthenticated users)
Co-authored-by: CodeFree <codefree@chinatelcom.cn>
2 months ago
npmrun
72659afbd3
feat(agent-documents): replace page navigation with right-side drawer
- Create AgentDocumentDrawer.vue: right-side drawer with document list + detail view
- AgentSidebar: change document NuxtLink to button emitting showDocuments
- AgentToolbar: change document NuxtLink to button emitting showDocuments
- AgentChatArea: forward showDocuments event from toolbar to page
- Chat page: wire showDocumentDrawer state + render AgentDocumentDrawer
Drawer features:
- List view with type filter (all/document/memory) + search
- Detail view with markdown rendering via AgentMarkdown
- Slide-in transition + overlay backdrop
- Teleport to body for proper z-index stacking
Co-authored-by: CodeFree <codefree@chinatelcom.cn>
2 months ago
npmrun
5418dc7ede
feat: wire editable system prompt modal to session config
Co-authored-by: CodeFree <codefree@chinatelcom.cn>
2 months ago
npmrun
588a423b86
feat: add systemPrompt column to agentSessions table
Co-authored-by: CodeFree <codefree@chinatelcom.cn>
2 months ago
npmrun
adeb09a801
feat: agent 独立化改造 - 新增 agents 表 + per-agent 配置 + 路由迁移
- DB: 新增 agents 表 + agent_tool_associations 表,agentSessions 加 agentId FK
- Service: agent CRUD / model-resolver / chat-engine 抽离 / collaboration stub
- API: /api/agent/... → /api/agents/:agentSlug/... 全套端点
- 前端: /chat/[agentSlug] 路由 + composables 加 agentSlug
- seed: admin/123456qaz + 11 tools + default agent + coder agent
- 修复: 输出时新建对话 bug(touchSessionOrder 提前到 send 之前)
- 修复: fetch 工具 config 字段 + config 解析 zod safeParse fallback
- 修复: auth-routes 支持 :param 正则匹配
Co-authored-by: CodeFree <codefree@chinatelcom.cn>
2 months ago